package com.saibo.spider.commons;


import com.wzw.code.CodeCrack;

public class CodeUtil {

	private static String username="lichenzhong";
	private static String password="do4best";
	
	/**
	 * 
	 * @param typeid 类型（从此链接查找 http://www.ruokuai.com/home/pricetype ）
	 * @param bts 图片流组
	 * @return
	 */
	public static String getCode(String typeid,byte[] bts)
	{
		String code="";
		try {
			CodeCrack cc=new CodeCrack();		
		    code=cc.getCode(username, password, typeid, bts);
		} catch (Exception e) {
			e.printStackTrace();
		}finally{}
		return code;
	}
}
